From: Lu Yahan Date: Mon, 18 Nov 2024 15:41:23 +0000 (+0800) Subject: [PATCH] tools: fix riscv64 build failed X-Git-Tag: archive/raspbian/22.22.1+dfsg+_cs22.19.15-1+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com//%22draghici.adrian.b%40gmail.com/%22/%22http:/www.example.com/%22draghici.adrian.b%40gmail.com/%22?a=commitdiff_plain;h=4d0f660650c90719607cfea4461b431b9dcaf696;p=nodejs.git [PATCH] tools: fix riscv64 build failed PR-URL: https://github.com/nodejs/node/pull/52888 Reviewed-By: Stewart X Addison Reviewed-By: Richard Lau Gbp-Pq: Topic build Gbp-Pq: Name fix-riscv64.patch --- diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index e38d3d28b..caf087c24 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1184,6 +1184,23 @@ ], }], ], + 'conditions': [ + ['v8_enable_webassembly==1', { + 'conditions': [ + ['((_toolset=="host" and host_arch=="riscv64" or _toolset=="target" and target_arch=="riscv64") and (OS=="linux")) or ((_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux"))', { + 'sources': [ + '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc', + '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc', + ], + }], + ['(_toolset=="host" and host_arch=="x64" or _toolset=="target" and target_arch=="x64") and (OS=="linux")', { + 'sources': [ + '<(V8_ROOT)/src/trap-handler/handler-outside-simulator.cc', + ], + }], + ], + }], + ], }], ['v8_target_arch=="arm"', { 'sources': [